package clinic.ms.mapper;

import clinic.ms.entity.Log;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface LogMapper {
        List<Log> selectAll();
        List<Log> selectbyId(String patientNo);
        int insertLog(Log log);
        Log getLogMax();
        void deleteLog(Integer logNo);
        List<Log> selectwei();
        void updateLog(Integer logNo, String logStatus, String now);
        List<Log> selectar();


        //--
        float queryReceived(@Param("time")String time);
}
